@mainColor: linear-gradient(to right, #0575E6, #00F260);
@fontWhite: #fff;
@changeBlack: linear-gradient(to right, #434343, #000000);
html,body{
  height: 100%;
}
* {
  scroll-behavior:smooth; 
  padding: 0;
  margin: 0;
}
nav {
  // 更改部分bootstrap样式
  border: none!important;
  margin-bottom: -50px!important;
  transition: ease-in-out .3s;
  a {
    color: @fontWhite;
    height: 70px!important;
    line-height: 40px!important;
    font-size: 16px;
  }
  a:hover {
    color: #ce3232;
    background: none!important;
  }
  a:focus{
    background: none!important;
  }
  .navbar-toggle {
    .icon-bar {
      background: @fontWhite;
    }
  }
}

.bg {
  height: 100%;
  background-size: cover;
}
.flex-center {
  display: flex;
  justify-content: space-around;
  align-items: center;
}
.banner {
  .bg();
  .flex-center();
  position: relative;
  background-image: url('../../img/bg-01.jpg');
  .home{
    position: relative;
    z-index: 2;
    h1,h2 {
      color: @fontWhite;
    }
  }
}
.cover{
  background: @mainColor;
  opacity: 0.7;
  width: 100%;
  height: 100%;
  position: absolute;
  z-index: 1;
}

.progress{
  width: 50%;
}
.intro {
  .bg();
  .flex-colum();
  justify-content: center;
  background: url(../../img/dn.png)no-repeat;
  background-position: center 20%;
  background-size: 85%;
  .blog-thumb{
    height: 80px;
    width: auto;
    background: red;
  }
  .progress-bar{
    background: @mainColor;
  }
}

.works {
  padding: 40px 0;
  position: relative;
  background: #f0f0f0;
  ul {
    // position: absolute;
    // align-self: center;
  }
  li {
    list-style: none;
    margin: 20px auto;
  }
  .img-window {
    display: none;
    position: fixed;
    z-index: 9000;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    img {
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
    }
  }
}


.flex-colum{
  align-items: center;
  display: flex;
  flex-direction: column;
}
.blog {
  /*.bg();*/
  /*.flex-colum();*/
  /*color: @fontWhite;*/
  /*justify-content: center;*/
  padding: 40px 0;
  background-image: url(../../img/beatles.jpg);
  transition: ease-in-out .3s;
  .blog-text {
    padding: 2em 0.5em 2em 0.5em;
    background: #66D38E;
    position: relative;
    width: 100%;
    border-radius: 0 0 5px 5px;
    margin-bottom: 2em;
  }
}
.contact {
  .bg();
  .flex-colum();
  justify-content: center;
  background: @mainColor;
  h1 {
    /*line-height: 13rem;*/
    color: @fontWhite;
  }
  input {
    height: 55px;
    border: none;
  }
  button {
    background: @fontWhite;
    border: none;
    outline: none;
  }
  button:focus {
    background: @fontWhite;
    border: none;
  }
  button:active {
    background: @fontWhite;
    border: none;
  }
}
.navscrollstyle {
  background: @fontWhite;
  color: black!important;
  a {
    color: black;
  }
}

footer{
  /*.flex-colum();*/
  vertical-align: middle;

  background: @changeBlack;
  color: @fontWhite;
  padding: 20px 0;
}


// blog 内容页

.blog-banner{
  height: 50%;
  background-position-y: 30%;
  margin-bottom: 40px;
}

.blog-content {
  // height: 1050px;
  padding: 50px auto;
  .flex-colum();
  justify-content: space-around;
  p{
    font-size: 20px;
    line-height: 40px;
  }
  img{
    margin: 40px auto;
  }
}